package com.disapand.dingdang.exception

import com.disapand.dingdang.common.ResponseEnum

/**
 * @author disapand
 * @date 2022/3/29 - 20:56 星期二
 */
data class DDException(val code: Int, val msg: String) : Exception(msg) {

    constructor(enum: ResponseEnum): this(enum.errorCode, enum.errorMessage)
    constructor(enum: ResponseEnum, msg: String): this(enum.errorCode, msg)
}
